<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
	<title>课程管理</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">		
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
	<link href="css/templatemo_style.css" rel="stylesheet" type="text/css">
	<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
	<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css"/>
	<link href="css/memenu.css" rel="stylesheet" type="text/css" media="all" />
	<!--<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">-->
	<script type="text/javascript" src="js/memenu.js"></script>
	<script>$(document).ready(function(){$(".memenu").memenu();});</script>
	<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
	<style type="text/css">
		body{
			background-image: url(image/ba2.jpg);
		}
		h1{
			color: #163758;
		}

		#pannel-bodytopr{
			float: right;
			margin: 5px;
		}
		.container{
			position: absolute;
		}
		
		.submit-button{
			float:right;
		}
		.modal-btn{
			float: right;
		}
		.divace{
			margin-top: 10px;
		}
		.CHight{
			height: 500px;
		}
		.feedbackH{
			height: 840px;
		}
	</style>
<script>
		 $(function () { $("[data-toggle='tooltip']").tooltip(); });
		//iframe高度自适应
			function SetWinHeight(obj) 
			{ 
			var win=obj; 
			if (document.getElementById) 
			{ 
			if (win && !window.opera) 
			{ 
			if (win.contentDocument && win.contentDocument.body.offsetHeight) 
			win.height = win.contentDocument.body.offsetHeight; 
			else if(win.Document && win.Document.body.scrollHeight) 
			win.height = win.Document.body.scrollHeight; 
			} 
			} 
			} 
</script>

</head>
<body>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<div>
<div class="top-header">
	<div class="topcolor">
			<div class="top-header-middle">
				
				<a href="index.html"><img src="image/logo-1.png" alt="" class="image-header"/></a>
			</div>
	</div>
</div>
		<div class="header-bottom">		
			<div class="top-nav">
				<ul class="memenu skyblue">					
					<li ><a href="index.jsp">首页</a></li>					
					<li ><a href="feedAction!getAll.action">课程反馈</a></li>					
					<li ><a href="courseAction!getAll.action" >课程管理</a></li>	
					<li ><a href="noticeAction!getAllByPage.action?num=1" >查看公告</a></li>				
					<li ><a href="mycourse.jsp">我的信息</a></li>
					<li><a href="load.jsp">退出</a></li>
				</ul>
				
			</div>
			<div class="clearfix"> </div>
		</div>
<div class="course-manage  templatemo-container">
	<div class="table-responsive">
			<div >

 <table class="table table-hover">	
					      <thead>
					         <tr>
					            <th>标题</th>
					            <th>内容</th>
					            <th>发布人</th>
					            <th>发布时间</th>
					            <th>操作</th>
					           </tr>
					      </thead>
					      <tbody>
					         <c:forEach items="${notes }" var="e">
					         <tr>
					         	<c:set var="num" value="#"></c:set>
					         	<c:set var="number" value="${num }${e.id }"></c:set>
					            <td>${e.fTitle }</td>
					            <td>${e.fContent }</td>
					            <td>${e.fPublisher }</td>
					            <td>${e.fTime }</td>
					            <td>
					    <a href="#" data-toggle="modal" data-target="${number }">详情</a>	
					     </c:forEach>
					     <c:forEach items="${notes }" var="elem">
					    
  						 <!--添加模态框开始-->
  						 <div class="modal fade" id="${elem.id }" tabindex="-1" role="dialog" 
							   aria-labelledby="myModalLabel" aria-hidden="true">
							   <div class="modal-dialog">
							      <div class="modal-content">
							         <div class="modal-header">
							            <button type="button" class="close" 
							               data-dismiss="modal" aria-hidden="true">
							                  &times;
							            </button>
							            <h4 class="modal-title" id="myModalLabel">
							             	 公告详情
							            </h4>
							</div>
							<div class="modal-body">
							   <h3 align="center">${elem.fTitle}</h3>
							   <div class="well well-sm">${elem.fContent}</div>
							   <h5>${elem.fPublisher}</h5>
							   <h5>${elem.fTime}</h5>
						 	 </div>				
	  					
					 <div class="modal-footer">
						  <div class="form-group">
		          				<div class="col-md-12">
		          				</div>
		       			 </div>	
		       					            
					 </div>
					
			</div><!-- /.modal-content -->
				</div><!-- /.modal -->
					</div>
   						<!--添加模态框结束--> 
   						 </c:forEach>
								</td>
					        </tr>
					     
					      </tbody>
					   </table>
			 </div> 
			
	</div>  
</div>
	<ul class="pagination" style="margin-left: 50%;">
	   <c:if test="${pageNow-1>0 }">
			<li><a href="noticeAction!getAllByPage.action?num=${pageNow-1 }">&laquo;</a></li>
		</c:if>
	   <c:forEach var="p"  step="1" begin="1" end="${pageCount }">
				<li><a href="noticeAction!getAllByPage.action?num=${p }">${p }</a></li>
		</c:forEach>
	    <c:if test="${pageNow+1<=pageCount }">
			<li><a href="noticeAction!getAllByPage.action?num=${pageNow+1 }">&raquo;</a></li>
		</c:if>
	</ul>					       
						      
	
</div>
	<div class="bottom-below">
		        <p class="friend-link">
		                 友情链接：
		        <a href="http://software.henu.edu.cn/">河南大学软件学院</a>&nbsp;&nbsp;&nbsp;&nbsp;
		        <a href="http://www.henu.edu.cn/">河南大学官网</a>&nbsp;&nbsp;&nbsp;&nbsp;
		        <a href="http://jwc.henu.edu.cn/default.asp">河南大学教务处</a>&nbsp;&nbsp;&nbsp;&nbsp;
		        <a href="http://xk1.henu.edu.cn/cas/login.action">河南大学选课系统</a>&nbsp;&nbsp;&nbsp;&nbsp;
		        <a href="http://news.henu.edu.cn/">河南大学新闻网</a>&nbsp;&nbsp;&nbsp;&nbsp;
		        </p>
            	<p class="end-p"><a href="http://www.henu.edu.cn/">河南大学</a>软件学院蒲公英工作室&nbsp;&nbsp;Copyright &copy;&nbsp;&nbsp;2016www.henu.edu.cn&nbsp;&nbsp;&nbsp;&nbsp;地址：河南省开封市河南大学&nbsp;&nbsp;&nbsp;&nbsp;<img src="image/gif011.gif" class="img4"> 0371-22222222</p>
	</div>	

</body>
</html>